package com.zjj.learn.javaplus.pkg01.demo14;

public class HWPhone {


    private String type;
    private Double price;
    private String color;

    private static String brand = "华为";


    public HWPhone() {
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public static String getBrand() {
        return brand;
    }

    public static void setBrand(String brand) {
        HWPhone.brand = brand;
    }

    public HWPhone(String type, Double price, String color) {
        this.type = type;
        this.price = price;
        this.color = color;
    }

    public void call(){
        System.out.println("打电话");
    }
}
